package com.atguigu.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @PROJECT_NAME: cloud2020
 * @DESCRIPTION:
 * @Author: csc
 * @DATE: 2023/4/6 15:02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Account {


    private Long id;

    /**用户id*/
    private Long userId;

    /**总额度*/
    private BigDecimal total;

    /**
     * 已用余额
     */
    private BigDecimal used;


    /**
     * 剩余可用余额
     */
    private BigDecimal residue;
}
